﻿
//推荐资源
function Save()
{
    if(Memberno=="")
    {
        top.location = "/user/login.htm?IsShow=1&ReturnUrl="+top.location.href;
        return;
    }        
    if(!$ValidButton$())return;
    var url = $("txtUrl").value;
    var description = $("txtDes").value;    
    WebServices.WWW.Resources.AddResource(PageID,0,url,"",description,LanLearn,LanBase,0,false,0,onsuccOP);
    //int pageID, int cateId, string url, string name, string description, string languageLearn,string baseLanguage, int totalhits, bool active, int sortID
}
function onsuccOP(result)
{
    if(result.State) 
    {
        $("SubSuccess").style.display='';
        $("SubSailure").style.display='none';
        $("txtUrl").value="";
        $("txtDes").value="";
    }
    else
    {
        $("SubSuccess").style.display='none';
        $("SubSailure").style.display='';
    }
}
//显示隐藏RDiv层
function RDivSH()
{
    obj=$("RDiv");
    if(obj.style.display=='none')
    {
        obj.style.display='';
    }
    else
    {
        obj.style.display='none';
    }
}
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
